Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to configure tsh directory for data #7035

Merged
merged 11 commits into from
Jun 4, 2021

Conversation

quinqu
Copy link
Contributor

@quinqu quinqu commented May 25, 2021

Purpose

This PR adds support for configurable home location for tsh configuration and data.

Implementation

Read in environment variable (if there is one) and store tsh data in configured path.

Fixes #3375

@russjones
Copy link
Contributor

Please add test coverage to this PR.

@quinqu quinqu requested review from fspmarshall and xacrimon June 2, 2021 19:23
@quinqu quinqu marked this pull request as ready for review June 3, 2021 00:37
Copy link
Contributor

@fspmarshall fspmarshall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like .tsh is always being appended to the custom path. Is there a specific reason for this? Seems unnecessary and potentially confusing to me. I think it would be better if we used the path specified by the user directly. Especially since .tsh is a hidden directory, meaning that users would likely believe that their custom path simply wasn't being set if no visible changes appear in their target directory.

@quinqu
Copy link
Contributor Author

quinqu commented Jun 3, 2021

@fspmarshall there was not a specific reason for it, I was just following the default, storing profiles in a hidden directory, but I can remove the appending of .tsh.

@fspmarshall
Copy link
Contributor

@quinqu Makes sense. Lets do that. I think it'll be more intuitive.

Copy link
Contributor

@russjones russjones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bot.

@quinqu quinqu force-pushed the jane/add-setting-tsh-home-dir branch from 958c9bb to 3c7093a Compare June 4, 2021 03:19
@quinqu quinqu merged commit 326fd1d into master Jun 4, 2021
@quinqu quinqu deleted the jane/add-setting-tsh-home-dir branch June 4, 2021 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Configurable home location for tsh configuration and data
4 participants